home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / xtreme_tugboating.swf / scripts / frame_1 / DoAction_2.as next >
Text File  |  2011-09-24  |  1KB  |  57 lines

  1. camera = true;
  2. Xparticles = true;
  3. screenFlash = function()
  4. {
  5.    _root.createEmptyMovieClip("screenFlsh",1);
  6.    _root.screenFlsh.beginFill(16777215,10001);
  7.    _root.screenFlsh.moveTo(0,0);
  8.    _root.screenFlsh.lineTo(450,0);
  9.    _root.screenFlsh.lineTo(450,450);
  10.    _root.screenFlsh.lineTo(0,450);
  11.    _root.screenFlsh.lineTo(0,0);
  12.    _root.screenFlsh.onEnterFrame = function()
  13.    {
  14.       this._alpha *= 0.9;
  15.       if(this._alpha <= 5)
  16.       {
  17.          this.removeMovieClip();
  18.       }
  19.    };
  20. };
  21. clearAll();
  22. clearAll = function()
  23. {
  24.    _root.ball.removeMovieClip();
  25.    _root.HUD.removeMovieClip();
  26.    _root.player.removeMovieClip();
  27.    _root.onEnterFrame = null;
  28.    _root._x = 0;
  29.    _root._y = 0;
  30.    _root._xscale = 100;
  31.    _root._yscale = _root._xscale;
  32.    i = _root.fishDepthReset;
  33.    while(i < _root.fishDepthMax)
  34.    {
  35.       _root["fish" + i].removeMovieClip();
  36.       i++;
  37.    }
  38.    i = _root.rocketDepthReset;
  39.    while(i < _root.rocketDepthMax)
  40.    {
  41.       _root["rocket" + i].removeMovieClip();
  42.       i++;
  43.    }
  44.    i = _root.meteorDepthReset;
  45.    while(i < _root.meteorDepthMax)
  46.    {
  47.       _root["meteor" + i].removeMovieClip();
  48.       i++;
  49.    }
  50.    i = _root.particleDepthReset;
  51.    while(i < _root.particleDepthMax)
  52.    {
  53.       _root["particle" + i].removeMovieClip();
  54.       i++;
  55.    }
  56. };
  57.